Skip to content

feat(component groups): rename various components#776

Merged
thatblindgeye merged 5 commits intopatternfly:mainfrom
adamviktora:component-groups-rename-components
Sep 24, 2024
Merged

feat(component groups): rename various components#776
thatblindgeye merged 5 commits intopatternfly:mainfrom
adamviktora:component-groups-rename-components

Conversation

@adamviktora
Copy link
Contributor

Closes #769, #772, #773

  • Also changes the renameComponent helper to update node name when default import matches the component name, e.g.: import InvalidObject from '@patternfly/react-component-groups/dist/cjs/InvalidObject/index'; <InvalidObject /> will update to import MissingPage from '@patternfly/react-component-groups/dist/cjs/MissingPage/index'; <MissingPage data-codemods />

Comment on lines +81 to +82
// These rules rename components. These components also have mods renaming props on them.
// -> we have to rename the component after the rules renaming props finish
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than this, could we update the rename props rule(s) for these components to target either the old or new name?

@adamviktora adamviktora force-pushed the component-groups-rename-components branch from 6c111f1 to dbfc10b Compare September 23, 2024 15:34
@thatblindgeye thatblindgeye merged commit aa1d152 into patternfly:main Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[component-groups] - ContentHeader [component-groups] - InvalidObject [component-groups] - NotAuthorized

2 participants